#ifndef EVENTWINDOW_H
#define EVENTWINDOW_H

#include <QWidget>
#include <QMouseEvent>
#include <QKeyEvent>
#include <QTimerEvent>
#include <QPushButton>
#include <QLabel>
#include <QMovie>

class EventWindow : public QWidget
{
    Q_OBJECT
public:
    explicit EventWindow(QWidget *parent = nullptr);

    QPushButton *startButton;
    QPushButton *endButton;
    QLabel *gifLabel;

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void keyPressEvent(QKeyEvent *event) override;
    void timerEvent(QTimerEvent *event) override;


    bool event(QEvent *event);

signals:

private:
    int timeId;
public slots:

    void startTime();
    void killTime();
};

#endif // EVENTWINDOW_H
